package com.desk.api.utils;


import cn.hutool.core.util.IdUtil;
import org.springframework.util.DigestUtils;

public class Md5Utils {

    public static String encryption(String text){
        return DigestUtils.md5DigestAsHex(text.getBytes());
    }

    public static void main(String[] args) {
        String encryption = Md5Utils.encryption("123456");
        System.out.println(encryption);
        for (int i = 0; i < 10; i++) {

        System.out.println(IdUtil.getSnowflake().nextId());
        }
    }
}
